package com.woniuxy.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.woniuxy.mapper.OrderDetailMapper;
import com.woniuxy.pojo.Guest;
import com.woniuxy.pojo.OrderDetail;
import com.woniuxy.pojo.OrderDetail_dgy;
import com.woniuxy.pojo.Room;
import com.woniuxy.pojo.RoomType;
import com.woniuxy.service.OrderDetailService;

import lombok.Data;
@Service
@Data
public class OderDetailServiceimpl implements OrderDetailService {
	@Resource
	private OrderDetailMapper orderDetailMapper;
	@Override
	public List<Room> dateByRoom(OrderDetail orderDetail) {
		return orderDetailMapper.dateByRoom(orderDetail);
	
	}
	
	@Override
	public int addOrderDetail(OrderDetail_dgy orderDetail) {
		return orderDetailMapper.addOrderDetail(orderDetail);
	}

	@Override
	public int updateOrderDetail(OrderDetail_dgy orderDetail) {
		return orderDetailMapper.updateOrderDetail(orderDetail);
	}

	@Override
	public String findOidByGuest(Guest guest) {
		return orderDetailMapper.findOidByGuest(guest);
	}

	@Override
	public int flagOrderDetail(String oNumber) {
		return orderDetailMapper.flagOrderDetail(oNumber);
	}

}
